import getlink from "../../apis/getapi"
let Home = {
    state: {
        newjinxuan: ""
    },
    mutations: {
        upjinxuan(state, payload) {
            state.newjinxuan = payload
        }
    },
    actions: {
        getjinxuan1(context, payload) {
            getlink(payload.url).then((ok) => {
                //   console.log(ok);
                this.newjinxuan = ok.data.today1;
                console.log(this.newjinxuan);
                context.commit("upjinxuan", ok.data.today1)
            });
        }
    },
    getters: {

    }
}
export default Home